package com.msmall.community.klg.dao;

import com.msmall.base.dao.BaseDao;
import com.msmall.community.klg.model.Article;
import com.msmall.community.klg.model.SegmentArticle;

public interface ArticleDao extends BaseDao<Article, Long>{
	
	/**
	 * 通过文章ID 查找文章分类
	 * @param articleid
	 * @return
	 * @throws Exception
	 */
	public SegmentArticle getSegmentByArticleid(Long articleid) throws Exception;
	
	/**
	 * 通过文章ID 查找文章以及文章分类<br/>
	 * object[0] = Article Object[1]=SegmentArticle
	 */
	public Object[] getArticleAndSegmentByArticle(Long articleid) throws Exception;
}
